import * as TYPES from "../actionType.js"

// 存放数据
let initState = {
    nav: 1,//底部导航判断渲染
}

function foodZ(state = initState, action) {
    state = JSON.parse(JSON.stringify(state))
    let { type, payload } = action
    let { nav } = state
    switch (type) {
        case TYPES.SET_NAV_TYPE:
            nav = payload
            // console.log(payload);
            console.log(nav);
            // return nav;
            break;
    }
    return state
}

export default foodZ